pkgname=aim7
pkgver=1
pkgrel=1
url='http://nchc.dl.sourceforge.net/project/aimbench/aim-suite7'
arch=('i386' 'x86_64')
license=('GPL')
source=('http://nchc.dl.sourceforge.net/project/aimbench/aim-suite7/Initial%20release/s7110.tar.Z')
md5sums=('2b61bbc62ebc6e93af50f190c3ece119')

build()
{
	cd $srcdir/aim7
	make <<-END


1
gcc
-O2


n
END
	make
}

package()
{
	benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}"
	mkdir -p ${benchmark_path}
	cd $srcdir/aim7
	find . -maxdepth 1 -type f -executable ! -name ".*" \
		-exec cp -af {} $benchmark_path \;
	cp fakeh.tar $benchmark_path
	mkdir -p "$benchmark_path/workfiles"
	cp -af workfile.* $benchmark_path/workfiles
}
